package Controller.user;

import Controller.member.MemberBaseServlet;
import Entity.User;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import Services.WebService;
public class LogoutServlet extends MemberBaseServlet {
    @Override
    protected void processRequest(HttpServletRequest request, HttpServletResponse response, WebService webServices, String action) throws ServletException, IOException {
		request.getSession().setAttribute("userID", null);
		webServices.setCurrentUser(null);
		this.forward(request, response, webServices, action, "/auth/logout.jsp");
    }
}